package com.jit.base.util;

import java.io.InputStream;
import java.net.URL;

/**
* Project: 统一用户管理客户端
* Filename: ClassLoaderTool.java
* Company: JIT Northeast R & D
* Author: tao_wang
* Copyright: Copyright (C) 2019, All rights reserved.
* Description: 类加载工具
* Date 2010-8-3
*/
public class ClassLoaderTool {
	
	static ClassLoader classLoader = Thread.currentThread()
			.getContextClassLoader();

	public ClassLoaderTool() {
	}

	public static String getClassFolder() {
		URL url = classLoader.getResource(".");
		return url.getPath().substring(1);
	}

	public static InputStream getResourceAsStream(String path) {
		return classLoader.getResourceAsStream(path);
	}


}
